package com.java1412.service.impl;

import com.java1412.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * @author java1412
 * @create 2021-05-25 15:30
 */
// 统一为接口里面的方法进行异常处理
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "----PaymentFallbackService\t fallback-paymentInfo_OK----";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "----PaymentFallbackService\t fallback-paymentInfo_TimeOut----";
    }
}
